How can I create the math I need?