Fixed the actual total cost modal calculation.