Here are some "yardsticks" you can use to try to understand the dB scale (Decibel). The dB scale is a logarithmic scale so it is not linear.
You must also specify the gain or loss in reference to something. In these antennas, they are both referenced to "i" or the so called isotropic radiator. In other words a radiator that radiates equally in all directions. They don't exist in real life but are used for a reference. So if you have an antenna rated at 3dBi this means that the antenna is rated to have gain (because it is a positive number) of 3 decibels of gain over the theoretical isotropic antenna. 3dB is a power gain of 2. So if you put 1 watt into this antenna it would have the same effect as 2 watts put into the isotropic antenna. If you had 6dB of gain it would be a doubling again of the original power so 4 times the original power so 4 watts . If you had an antenna of 10 dBi it would be 10 times the original power so 10 watts effective. Remember the scale is not linear. It is logarithmic. If you will remember these three points you will be able to get pretty close in your head to figuring out how much gain or loss (negative numbers) an antenna or device has.
In the example of the 10dBi antenna it would give 10 times the power in or out
In the example of the 17dBi antenna it is a bit harder to figure in your head, but lets give it a try.
so lets break it down, to 10 + 6 +1 dB so 10 times + 4 times + 1.25 so about 15.25 times the power. So if you put 1 watt in you would get about 15 watts out. This works the same for receive although we are dealing with much lower power levels.
All of these figures are approximate, but close enough for government work.

You can work with the actual formula if you like but these approximations will work just fine.
Sometimes you see antennas rated in dbD instead of dbi. This is referenced to a standard dipole. Both types of references are used in the goal to confuse the consumer. Ofttimes no reference is given, so no actual calculations can be performed. Sometimes things like gain=high or some such nonsense is listed.
Many antennas actually have loss instead of gain. Some examples would be "rubber duckies" on VHF and most 27mhz mobile CB antennas that are smaller than the resonant 102 inch whip. If you would like to know more, let me know..