add remain days and update methods to model