Time calculation without button click, new method