total cost working