Calculate in_general using year/month/day difference

...instead of calculating by day difference and assuming static values for year to day conversion, etc.