bug 1219: fixed calculation for GPG expired, added some comments