calculating deficit right for weekly homepage