Dear Statalist users,

I want to calculate a ratio by simply adding two variables, and then dividing by another variable. I have read chapter 13 of the Stata manual that explains the arithmetic operators, but I cannot seem to accomplish what I want. Let me give you an example:

Code:
input double(debtshort debtlong assets)
 195.388    944.9  1923.516
  78.829  281.679   873.659
 666.198 6413.882 12266.546
   134.6    193.8    2486.5
end
What I want to accomplish in terms of mathematical/calculation notation is (debtshort + debtlong) / assets. I know how to divide in Stata, but adding variables with the '+' sign does not seem to work. Can anyone share their expertise?

Thank you