front page calculating and displaying days properly