Go through this
topic and see if it helps
It may give some ideas regarding the calculations you need to make. Further you can adjust that according to your needs.
Go through this
topic and see if it helps
It may give some ideas regarding the calculations you need to make. Further you can adjust that according to your needs.