If you are replacing a mainspring with a different width, then you will want to determine the thickness so as to have the same strength characteristic. This calculation, performed iteratively, determines the correct mainspring thickness and length even if the old mainspring is incorrect.
Change the items in the yellow boxes and see the Results below.