How long does mineral oil last?

For relieving constipation, take mineral oil on an empty stomach at least one hour before

two hours after eating, and at least two hours before bedtime