Is it not as simple as saying you have the user add their graduation year and saved to the DB then you take ‘current date/time extract year - users graduation year’?

On signup, run the same flow you do for when you invite people who had already been signed up. This should be a backend workflow.