def get_duration(days=0, hours=0, minutes=0, seconds=0, millis=0):
    """
    Get the given duration in seconds

    :param float|int days:
    :param float|int hours:
    :param float|int minutes:
    :param float|int seconds:
    :param float|int millis:
    :return float: Number of seconds in the duration, incl. fractions
    """

    duration = 0.0

    duration += float(days) * 24 * 60 * 60
    duration += float(hours) * 60 * 60
    duration += float(minutes) * 60
    duration += float(seconds)
    duration += millis / 1000.0

    return duration