Time and work formula in maths