Adding missing function to the semester weights.

#5738