Total minutes calculation