I will code an algorithm that you need so you can focus on more important things and will return it heavily commented for an easy understanding of what is happening in each line.
the values are (fixed price):
* $25 - 4 days - small code.
* $40 - 2 days - small code but I will prioritize it and do it as fast as I can.
* $100 - 14 days - Bigger code.