You'll know baked salmon is done when it's opaque in color and flakes easily with a fork. When in doubt, err on the side of slightly undercooking it because it will finish cooking under the intense heat of the broiler. I also let my salmon rest on my counter for about 5 minutes before serving, which gives the carry-over heat from the oven time to finish cooking the inside of the salmon.