fix error in calculating gross total due