Work formulas
PRODUCTIVITY = 0.2*POW(USER_LEVEL, 0.8)*POW(RESOURCE_KOEF/10, 0.8)*POW(FACTORY_LEVEL, 0.8)*POW(WORK_EXP/10, 0.6)
(POW means raise to a power)
RESOURCE_KOEF differs for each type of factory:
Gold mine
RESOURCE_KOEF = Max region Gold resource (including deep exploration) * 0.4
MONEY = RESOURCE * 5.5
Oil field
RESOURCE_KOEF = Max region Oil resource (including deep exploration) * 0.65
Ore quarry
RESOURCE_KOEF = Max region Ore resource (including deep exploration) * 0.65
Uranium quarry
RESOURCE_KOEF = Max region Uranium resource (including deep exploration) * 0.75
Diamond mine
RESOURCE_KOEF = Max region Diamonds resource (including deep exploration) * 0.75
Liquefaction plant
RESOURCE_KOEF = POW(BUILDING_ELECTRO*2, 0.4)
Helium-3 lab
RESOURCE_KOEF = POW(BUILDING_ELECTRO*2, 0.4)
PRODUCTIVITY = PRODUCTIVITY * 1.2
This ads original nation bonus (which was left only for damage in wars many months ago and is now added regardless of the region)
PRODUCTIVITY = PRODUCTIVITY * (1 + DEP_OF_RES/100)
This adds department of resources bonus.
Gold mine
PRODUCTIVITY = PRODUCTIVITY * 4
Diamond mine
PRODUCTIVITY = PRODUCTIVITY / 1000
Liquefaction plant
PRODUCTIVITY = PRODUCTIVITY / 5
Helium-3 lab
PRODUCTIVITY = PRODUCTIVITY / 1000
These are just some additional coefficients "for balance"
This PRODUCTIVITY is the total gross amount of resources that will be produced by 1 (!) Energy step (for example, 10 E, not all 300 E).
Now let's count the amount of resources points that will be withdrawn from the region:
WITHDRAWN_POINTS = PRODUCTIVITY/40000000
This, obviously, applies for Gold, Uranium, Diamonds, Oil and Ore.