fixed compound result calculation