My math experiences I had at school are not very advanced and I'm struggling with a calculation right now...
I'm programming an image Search script for my company where you can find all pictures we bought off several shops, like Shuttersdock, Istockphoto, Fotolia and so on, and I'd like to base it on a ranked search function...
I'd need a formula to rank each image based on 3 numbers...
I got the hit rate (hits/search tags), the usage (how often it's used) and the days since it was used the last time...
Now I'd need to calculate the level. :/
I tried several things but ended up in chaos ^^
The higher the level the better the pic...
So we have the hit ratio and the days of the last usage increasing the level and the usage decreasing
My last try was with a usage ranking (lastUsage*(usage/100)) I don't know how I ended up there :/ and then (hitrate*usageRanking)
I hope I could explain my problem understandably...
I'm kinda stuck here and I don't know how to try it at all.
I hope you guys can help me. :)
Regards