Qt Application Calculate Payments