Are you good enough to go to heaven?

Many believe that they are a good person and that if their good deeds outweigh the bad things they have done, then they will go to heaven. This, however, is not how God determines whether or not you are good enough to go to heaven.

How does God determine whether or not you are good enough to go to heaven?