Select a civilisation from the above list as well as production type:

You will then be shown 4 sections, 1 for each Age in Age of Empires 4.

You can set your main food source for each age, and then add unit / building type and how many you would like to produce.

The calculator will show you how many production buildings, the amount of villagers on each resource, and the resource per min costs, that would be required to achieve your unit per min goal.

Please note: these figures use in game gather rates which are a good estimate, they may not be 100% accurate, but they can certainly get you going in the right direction for the amount and distribution of villagers required.