Hello Daniel,
Unfortunately, there is no such formula to figure out the exact resources requirement. I would recommend you to use the monitoring tools eg: Stackdriver for monitor, logging and diagnostic purposes. You can start with the smaller machine type and depending upon the usage and load on the VM instance, change the CPU and memory later. More information on changing the machine type of an instance can be found at this link.
I hope this information helps you.
Navi