Can you extend treatment past 22 days?
you might be able to, but i wouldnt and there shouldnt be a need.
if your fish still have it, then the cause needs to be addressed
the medication is based on the life cycle of the parasite being treated so extending it wont make it more effecting but rather stress out the fish more.
these are my logical assumptions

