Where are Calculations executed?

I’d like to know where calculations are executed. Is it on the server or on the client machine?

smartclient on the client, webclient, on the server!

Thanks for clear explanation.