Trying to sort out calculation.