Your explanation is not very clear, but it can be done. However, you will need some pretty good math skills to do it right.