formula setup

setup calculation of prompt inputs