added personal allowance calculator and tests