I disagree with the convention to punctuate formulas. What does it bring to the reader, besides confusion? (one time, I confused a comma and a prime, and I wasted a lot of time).
The reader does not need punctuation after a formula anyway, because usually, he stops to understand it.
Math formulas already harbor a lot of indexes and signs, so adding punctuation does not help.