express wt_p formula as codeblock