How to perform calculations on time

i am not getting right answer while using same formula as sir is using in chapter “how to perform calculations on time and completion of year percntage using excel sheet formulas” in 1st example.