def phase_sync(frequency, phase, elapsed_time):
    """
    Calculate what the phase should be for a carrier at the given frequency
    after the given time has elapsed.
    """
    return phase + (elapsed_time * frequency * 2)