php class to calculate the term/coop of a SYDE Uwaterloo student