def expectedWork(etotal, estart, efinish, t):
    """Get expected work progress given total work, start, finish, and point t in time (in seconds since the Epoch)."""
    if t<=estart:
        return 0.0
    elif t>efinish:
        return float(etotal)
    else:
        p = float(etotal)*(t-estart)/(efinish-estart) # linear task progress
        return p