compensation math