A calculator for pingping