I am currently updating my games server logger which tracks a server’s revenue, errors, and player count. I would like to include premium payouts in the revenue section, but I am unsure how to calculate them via a script.
So far I check if a user is a premium member on join, and if so I record the time they joined the game. Then when they leave I use that time to calculate how long they were in the game. Now all I need is an equation to calculate the revenue from their visit using how long they played the game.
If anyone has an equation such as this or knows how to calculate it, your help would be much appreciated.