allowance calculator bug with '