Improved statistics view and fixed bug in date calculation