recalculate months