implemented rough calculation of income amounts