I am trying to create a field on an interactive form in Acrobat XI Pro that will create a ratio (A:B). I have two fields that the user will enter data (Number of Students and Number of Instructors). I want a third field (Ratio of Students to Instructors) that will create the ratio in the smallest possible value (i.e. 3:1, not 9:3).

I believe I need to use the Custom calculation script, but have not done this before. Any help would be appreciated.