Implements payments and shared costs and calculates grand total using all.