fixed deficit calc bug on homepage