import math


def getDuration(s):
    """
    return how many days / hours / minutes / seconds
    """
    days = 0
    hrs = 0
    mins = math.floor(s/60)
    secs = s - mins * 60
    if (mins > 60): # over an hour
        hrs = math.floor(mins/60)
        mins = mins - hrs * 60
        if (hrs > 24): # over a day
            days = math.floor(hrs/24)
            hrs = hrs - days * 24
    return (days, hrs, mins, secs)