Total opportunity sum

how to do it?

You will need some custom code to do this …it is not native functionality

what and where I have to write the code?