For full-time, part-time, and substitute teachers, creditable service in any school year shall be that fraction of a year equal to the ratio of days paid in the legal school term, or the employment agreement if longer, to 170 days.
For full-time, part-time, and substitute teachers, creditable service in any school year shall be that fraction of a year that is equal to the ratio of days paid in the legal school term, or employment agreement if longer, to either the number of days required at the time of service to constitute a legal school term or the number of days in the employment agreement, whichever is greater. However, service of 170 or more days in any school year after June 30, 1959 shall constitute a year of service.
40 ILCS 5/16-130