Use apple script to get information in task note

Dear all, I want to use applescript to get information in task note. For example, I mark “+/- numbers” in the note of each task:

task 1 note: +2
task 2 note: +1
task 3 note: -3

Is there any applescript could automatically get the value in notes and calculate the subtotal (2+1-3=0)?