In the DMG, p126-129, the expected treasure value per level is listed, eg

Lvl 1 = 720, Lvl 2 = 1040, Llv 3 = 1355, etc

Can one of the math geniuses out here give me the calculation formula for this?

Or alternatively for the table in the PHB, p223.

Thanks in advance