You were declared righteous when you repented of your sins and accepted Jesus as your saviour.
Now that you are righteous, you need to continue living righteously.
Ezekiel 18:24
24 But when the righteous turneth away from his righteousness, and committeth iniquity, and doeth according to all the abominations that the wicked man doeth, shall he live? All his righteousness that he hath done shall not be mentioned: in his trespass that he hath trespassed, and in his sin that he hath sinned, in them shall he die.
G-man, the Old Testament dealt with the House of Israel! God is
dealing with us through His Grace at this time. We're not living
under the law! Incidentally, the gentiles (us) were never given the
law!
I realize you desire to, earn your way to Heaven however, that's
not the way it's done today!