Fixed the problem with total expend calculations for summary files
Fixed a problem with expend calculations in outputs