Formula for swrcfit