fix for conversion of contract (day was not taked into account)