Abstracted formula. Really ready for placing trade values in now..