compensation in math