def format_elapsed_time(seconds):
    """Format number of seconds as days, hours, & minutes like '12d 3h 45m'"""
    minutes = int(round(seconds / 60))
    hours, minutes = divmod(minutes, 60)
    result = '{minutes}m'.format(minutes=minutes)

    if hours:
        days, hours = divmod(hours, 24)
        result = '{hours}h {prev}'.format(hours=hours, prev=result)

        if days:
            result = '{days}d {prev}'.format(days=days, prev=result)

    return result