Something like that would require a custom statistic.
This guide covers the basics on custom statistics creation and
this guide goes into more detail. The latter was written for PokerTracker 3 but the techniques all apply to PokerTracker 4, the interface is just slightly different.