modified specialized time and redid time calculations to be cleaner
Merge pull request #7 from chushao/backend

modified specialized time and redid time calculations to be cleaner