When’s the best time to do a cost segregation study?

If you’ve got real estate or real estate clients, you should know that the best way to reduce tax liability is by commissioning a cost segregation study. But should you do it before or after a rehab — or both?