Factored out minsToSecs as a utility function.