[RPG] I need a formula for calculating the CR for a custom monster

dnd-5ehomebrewmonsters

I need a math formula for calculating CR for a monster that I am creating.
Nothing too detailed just enough to give a fair fight to my players. Or at least leave one person alive.

Best Answer

Steps for how to calculate a monster's CR can be found on page 274 through to 279 of the DMG.