Add function for calculating raises