Not drying up! Help!

Am

2 months ago I wasn't producing enough milk, so I switched to formula. I thought if you don't use it you lose it. I am still getting engorged to where I need relief by pumping twice a week. Its becoming painful.I can't believe I'm still producing after 2 months. Anyone have experience with how long until the pumps shut off?