Reamaining early cost and Remaining late cost - Calculation logic