Computes prorated overload pay and qualified credit hours for a single instructor based on course credit hours, enrollment, and institutional overload rules.
ol_comp(
instructor_schedule,
L = 4,
U = 9,
rate_per_cr = 2500/3,
reg_load = 12,
favor_institution = TRUE
)A tibble with course-level compensation and a human-readable summary block.
A data frame of the instructor's courses, with columns INSTRUCTOR, ENRLD, and HRS.
Lower enrollment threshold for overload pay qualification (default = 4).
Upper limit of proration; courses with ENRLD > U get full-rate pay (default = 9).
Base overload pay per credit hour (default = 2500/3).
Regular teaching load in credit hours (default = 12).
Logical: if TRUE (default), prioritizes high-enrollment courses for regular load.
If favor_institution = TRUE (default), the function assigns high-enrollment
qualified courses to the regular load first, resulting in lower compensation
because only low-enrollment courses are left for overload pay — this favors the institution.
If favor_institution = FALSE, the function assigns low-enrollment qualified
courses to the regular load first, preserving high-enrollment courses for compensation —
this favors the instructor.
Note: This function assumes that instructor_schedule is already filtered for one instructor.
Use get_instructor_schedule() to extract an instructor’s schedule using
flexible, case-insensitive pattern matching (regex supported, e.g., "smith|jones").