Modify compute time duration
Modify funcation nexttime()