I believe it uses the weight
value on each vote to determine the percentage of the curation rewards from that post that the voter will be awarded.
So if you have a weight of 10 and I have a weight of 90, and the post we voted on earned 10 STEEM, we would split 2.5 STEEM at a rate of 10% to you (0.25) and 90% to me (2.25).
There's more to it than just that, but that's the basic way I know how to estimate it. Each subsequent vote is going to alter that information as well.
Thank you very much for help!
Also as I know some % should be subtracted in the time interval of 1-30 mins.
No problem, and yep - the first 30 minutes has a sliding scale subtracted to the author during that time.
I haven't actually written out any code for that yet - so if you come up with a clever way of adding that into the equation, I'd be interested in seeing what you come up with!