testing updated

Added ending by time. Yet time is given in minutes.