'How much would cost Ethereum transaction sending ERC20 token to N recepients?

I want to make an ERC20 token that supports virtual mining. That means that in my Smart Contract I want to make the rule that every K seconds, it sends X amount of tokens to N recipients.

My question is: Is there a way to make a calculation of how much would this cost approximately and how ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source