Removed total seconds in down_calc and improved string handling in demilich.