I hope I did it right...... it's VERY COMPLEX!!!!!!!! '_'
simple variables, variables, conditional loops, basic math,