How can i make complex calculations