It would not be sufficient to use a Boolean tag as your counter for the "Good Count" parameter of that calculation. You will need to use a value that increments to reflect the number of "Good quality" units that have been produced.
If you wanted to generate a count of how many times a Boolean tag changed from 0 to 1, you could implement a counter in the Advanced Tags Plug-in in KEPServerEX, and then monitor that counter. There is also a discussion of creating a counter in ThingWorx in the ThingWorx Developer Community here:
The timeframe of the calculation would be reflected in the choice of the expressions/tags for the denominator of the Quality expression (the "Total Count"). You would need to incorporate logic that reflects when you would want this to reset, or criteria for a reset, etc. This would depend on the specifics of where and how this solution was being implemented.
The "Run time" resets when the Status of the Asset changes. How you would exert control over this would be reflected in the Expression configured in the Status Definition.
Please let us know if that answers your question, or if you are still unclear about any of this. Be sure to try out the workshop referenced by Varathan in his response to your question here: