fix cookie expire time math wrongs