The thickness of the piece of fish you are baking will determine how long it will need to bake.  The best way to ensure the fish is cooked thoroughly is to use an instant-read thermometer and cook it until the internal temperature reaches 145 degrees F.   When the fish is done the flesh should be white and flake when you gently twist a fork in it.