calculating number of calibration evetns according signal on RP