This is another one where after defining a few support methods (sum from a previous problems) the actual calculation almost reads exactly as the problem describes.
This is another one where after defining a few support methods (sum from a previous problems) the actual calculation almost reads exactly as the problem describes.