How long does epidural last?

Like how many hours ??? Or up until u give birth? If i get epidural early and im dilating slow… will it wear off?