For the formula, you'd calculate based on the total volume in the keggle, so that would include what you leave behind.
I agree with JRems, 1.7G is quite a bit. What is your setup? Sounds like you could improve that quite a bit! I have a keggle with an offset diptube and leave less than half...