I am new to PsychoPy and currently designing Sustained Attention to Response Task. In this study, I have designed some examples for participants on which they have to press spacebar whenever they see any number from 1-9 except 3. I have created an excel file with numbers and correct answers categories (Space, blank) for each number. However, I want to calculate target accuracy, that is how many times the participants withhold the space bar for number 3. Further, I want to calculate non-target accuracy that is, how many times participants pressed the space bar for other numbers correctly. For instance, if 3 was presented two times on the screen and participants withhold their response just once then their target accuracy will be 50% (1/2*100). How can I do it for more trials? Any suggestions would be appreciated.