Hello, I came across phrase "it works out to" and I cannot fully figure out its actual meaning and usage. Below some examples. This is a nice amount of money, but it works out to $18,200 a year. After all discounts it works out to 500$ per night. My question is in what sort of situations I can use above mentioned phrase. Does it only relate to numbers, money etc?