Calculates residual income

Note: Code is going to rewritten taking a different approach