Creating smithy formula for elsi