Added convertToSeconds and implemented it in every function that accepts time as a parameter.