Fix computation of depreciation for duration under 1 month

issue4151
review12531002