Script HM to Nash calculator