Add function to calculate Date from raw seconds