accept time in minutes as well