Fixed status calculation to work currectly with summer time