Time Integrated with prev and next button.
Set variables for computation