I don't think you're taking this straightforward; the math is perfectly straightforward.
Keyframes have a property called Time which gives you their time position in the AnimationTrack. How do you get Keyframes? Keyframes are acquired from an animation's KeyframeSequence. This is usually created when viewing the animation in the animation editor.
Anyway, the math is pretty easy:
local f1 = script.Parent.Frame1
local f2 = script.Parent.Frame2
local f3 = script.Parent.Frame3
local diff1 = f2.Time - f1.Time
local diff2 = f3.Time - f2.Time
I personally think you just forgot about the Time property of keyframes. Note that these 3 in particular are all related to the same body part and have different time positions.