Add sleep duration calculator