PVC Vent Length

I am looking for guidelines on the maximum length for a PVC vented furnace. The one I saw today had a horizontal run of 26’. It seemed quite long. Also the water heater vent was equally as long.
Thanks for your help.