# Password Expiration - ${dayToExpire} evaluating the negative (-154255) days

**URL:** <https://developer.sailpoint.com/discuss/t/password-expiration-daytoexpire-evaluating-the-negative-154255-days/55497>\
**Category:** SHF Discussion and Questions\
**Tags:** email-templates, sailpoint-identity-security, password-management\
**Created:** [May 3, 2024, 4:51pm UTC](https://developer.sailpoint.com/discuss/t/password-expiration-daytoexpire-evaluating-the-negative-154255-days/55497 "2024-05-03T16:51:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jesvin90](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jesvin90/32/5301_2.png) [@jesvin90](https://developer.sailpoint.com/discuss/u/jesvin90)\
**Post date:** [May 6, 2024, 2:33pm UTC](https://developer.sailpoint.com/discuss/t/password-expiration-daytoexpire-evaluating-the-negative-154255-days/55497/2 "2024-05-06T14:33:41Z")

</div>

Hi @nadhikari_identitynow,

Try something as below :

`#if(${dayToExpire} < 1)#stop#end REMINDER: Your ${acctName} password#if ( ${dayToExpire} <= 0 ) has expired#elseif ( ${dayToExpire} == 1 ) expires in ${dayToExpire} day#elseif ( ${dayToExpire} > 1 ) expires in ${dayToExpire} days#end`

I haven’t tested this out, so you may want to change the ${dayToExpire} \< 1 condition to something that fits your case.

Take a look at the below thread for reference :

> [@Email Templating and Conditional Routing](https://developer.sailpoint.com/discuss/t/email-templating-and-conditional-routing/3540/5):
>
> I did some testing on my end and I was able to conditionally stop emails from being sent on a per template basis. I accomplished this by adding an if condition in the subject of the template. If the condition evaluates to true, then it will insert the #stop variable so the email is not sent. If the condition is false, then the #stop variable won’t be inserted into the subject, and the email will be sent. Here is what I put in the subject: #if(true)#stop#end A user has been granted ${accessP…

---

_[View the full topic](https://developer.sailpoint.com/discuss/t/password-expiration-daytoexpire-evaluating-the-negative-154255-days/55497)._
