def _LLF(job, t):
    """
    Least-Laxity-First assigns higher priority to jobs with lesser laxity (slack).

    The laxity (slack) of a job of a job with deadline d at time t is equal to
        deadline - t - (time required to complete the remaining portion of the job)
    """
    return job.deadline - t - job.remaining_cost