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?

I haven't seen this phrase used with things other than numbers, but then again I'm not quite sure whether if I've seen it in the first place. The meaning seems to be something along the lines of "sprowadza się do".

It can be used without numbers e.g. "it worked out well" (skończyło się dobrze"?) or it didn't work out to his entire satisfaction, i.e; the end result was not totally satisfying

There are a lot of uses of "work out"; however, "work out to" + noun refers to a mathematical end-result.

This is entirely correct. The expression 'it works out to' can be rephrased simply as 'equates to' (meaning is equal to) and is a fairly common usage in English. E.G. Fred earns $86,000 per annum which works out to $7167 per month is equivalent to Fred earns $86,000 per annum which equates to $7167 per month It's a mathematical end-result