It is calculated based on the amount of shares you have submitted to the pool, share difficulty, and also luck . That’s why current hashrate won’t be shown as steady line, but will change – sometimes it will be higher and other times it will be lower.