Formula to calculate number of nodes required Elasticsearch

Hello,

Is there any formula to calculate number of nodes required in Elasticsearch based on the content size + data retention period?

Thanks,
Rohan