Ruby routine to calculate Brazil IRRPF