When B is given as input from the user you can calculate in the same user action the sum of c.
This can be done for example by expanding the save action/microflow or using an onchange microflow. Which one fits best? That depends on your requirements and usecase.
Just make sure you create a generic calculate subflow so you can re-use it when you or the user for example delete or adjust the amount.