Fix return type of TO_DAYS function. Should be int.
Fix missing end ' in .travis.yml.