# How to use a conditional IF statement for a Calculated Date field?

**URL:** <https://forum.kintone.dev/t/how-to-use-a-conditional-if-statement-for-a-calculated-date-field/481>\
**Category:** General\
**Created:** [May 23, 2022, 2:35am UTC](https://forum.kintone.dev/t/how-to-use-a-conditional-if-statement-for-a-calculated-date-field/481 "2022-05-23T02:35:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![annaylee](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@annaylee](https://forum.kintone.dev/u/annaylee)\
**Post date:** [May 23, 2022, 2:35am UTC](https://forum.kintone.dev/t/how-to-use-a-conditional-if-statement-for-a-calculated-date-field/481/1 "2022-05-23T02:35:25Z")

</div>

On the Detail Create page, I have a Date field with a field code “start\_date”.  
When the page is initially loaded, the field is empty/blank.

I have a Calculated field “day1” with the formula “start\_date + (60_60_24\*1)” which represents one day after the start\_date.

Since the “start\_date” is empty/blank when it is initially loaded, the “day1” is auto-filled with “Jan 5, 1970” which is the Javascript Epoch Time.

How to modify the formula so that when the page is initially loaded,  
the “day1” is auto-filled with a blank?

---

<div class="post-metadata">

**Author:** ![Chris](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/chris/32/44_2.png) [@Chris](https://forum.kintone.dev/u/Chris)\
**Post date:** [May 25, 2022, 5:04pm UTC](https://forum.kintone.dev/t/how-to-use-a-conditional-if-statement-for-a-calculated-date-field/481/2 "2022-05-25T17:04:43Z")

</div>

Hello annaylee,

If you want to make a Calculated field blank if a field used in the calculation field is blank, you should then use an IF statement something like the following :

`IF(start_date = "", "", start_date + (606024*1))`
