Change seconds to minutes for loop