At first level a PC is probably CR 1/2 - 4 of them would be a Deadly encounter for a group of first level PC's.
Unfortunately, this seems to vary a little from level to level.
On average I would assume that an NPC generated in the same manner of a PC would have a CR of 2 below it's class level.
Using the same logic, a group of 4 level 20 PC's could face 4 CR 15 Monsters as a deadly encounter.
You may notice that the Humanoid NPC's in the Monster Manual aren't quite the same as the PC's. The archmage for example is an 18th level wizard in terms of casting level, but lacks many of the special feature that a PC would have at that level. He has a CR of 12.
PC's also have other advantages; Permanent Magic Items, One shot items, Preprepared team tactics, potentially dozens of practice battles.
This is just as well, as the GM has so many more things to juggle, they probably won't "benefit" from a running a group of characters of a level of complexity equal to the player characters.
So in conclusion: the formula for adding class levels would not be straightforward, thankfully you have already mentioned the level of your party. For a creature of CR 4+, I would add 1 to the CR for each 3 class levels you add, but strip out some of the complexity.