This is not quantity but the quality of the deeds that will determine the fate of the person in the light of absolute knowledge and justice of God. Good deeds may compensate for the bad ones, and even bad deeds will be transformed into good deeds with the generosity of God, once the person qualifies for the forgiveness and mercy of God on merit.
يُضَاعَفْ لَهُ الْعَذَابُ يَوْمَ الْقِيَامَةِ وَيَخْلُدْ فِيهِ مُهَانًا ﴿
٦٩﴾ إِلَّا مَن تَابَ وَآمَنَ وَعَمِلَ عَمَلًا صَالِحًا فَأُولَٰئِكَ يُبَدِّلُ اللَّهُ سَيِّئَاتِهِمْ حَسَنَاتٍ ۗ وَكَانَ اللَّهُ غَفُورًا رَّحِيمًا
Except he who repented, professed faith and did good deeds, then it is such people whose bad deeds God shall transform into good ones. In reality, God is very Forgiving, Ever-Merciful. (25: 69-70)