In my stats-script with several clients. I want a new function: expected visitors for today. How it must work:
when a client logs in:
- get total number visitors today ( A )
- get the time ( B )
- get the number of visitors from history between 0.00 and B ( C )
- calculate ( A / C ) *100
Example: in history you will find that 25% of my visitors comes before 05.00. At 04.45 I have 100 visitors. The expected number of visitors that day is 400.
I think it can be done in an hour by a smart guy.