I'm not sure how dependable it is (I dont have AD to test with), but you could also try the built in kix macros.

 Code:
? "Max PW Age: "+@MaxPWAge
? "PW Age: "+@PWAge
?
? "PW Expires in: "+(@MaxpWAge-@PWAge)

get $