KDC's never been open source... ; )
But, even if I told you the formula, it wouldn't help much...it's based on the past 24 hours worth of likes/heart/laughs/wows and the number of participants on the forums...which would be hard numbers to calculate without direct database access....
I'm not on vacation. ; ) The kinks should be all ironed out.
The number of likes/hearts/laughs changes day to day, so it would be hard to figure out an exact number.
But the formula was created to give away roughly the same number of box games daily as before....