calculate expired done by momentjs