We would use cron job for the calculation of Captain payout after each month so that company can pay directly by cheching payout list
Follow the below steps
Select Cron job in Cpanel.
Open Cron job & select "Once per Month".
Enter the below Cron job command inside "Command".
/usr/local/bin/php /home/your_username/public_html/your_project_name/Payout.php.
Write your own username inside "your_username" in above command , you can find the username in Cpanel "General Information" section under "Home Directory" directory.