Typically the value is calculated using only the helpful and declined values, e.g. in the calculation in "Overall Percentage of Helpful Flags". Obviously flags waiting for review can't count because no decision has been made. Flags which aged away, also, wouldn't count for the same reason. Likewise, flags which you have personally retracted would not count towards the value either.
The calculation would then be:
helpful / (helpful + declined)
so your stat is
4 / (4 + 2) = 4 / 6 ≈ 67%
From this answer to "Can I get rid of “disputed” flag stat, if it turned out to be correct" by Servy:
There are three types of flag statuses:
- Helpful
- Declined
- Disputed
Helpful means a mod specifically marked the flag as helpful, or the action that you were suggesting through a flag was taken by the community.
Declined means that a mod specifically declined the flag.
Disputed basically means neither happened. A mod never actually looked at the flag and declined it, but the action you suggested wasn't taken in response to the flag either. This can happen in any number of cases; certain flags are marked disputed when the post is edited; non-moderator users can choose not to act on a flag (either through the 10k tools page (which has since been removed) or through certain review queues) which disputes a flag, etc.