# How to add days to a date variable in a service task

**URL:** <https://forum.camunda.io/t/how-to-add-days-to-a-date-variable-in-a-service-task/22488>\
**Category:** Discussion & Questions\
**Tags:** process-engine\
**Created:** [September 11, 2020, 9:05pm UTC](https://forum.camunda.io/t/how-to-add-days-to-a-date-variable-in-a-service-task/22488 "2020-09-11T21:05:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![aravindhrs](https://forum.camunda.io/user_avatar/forum.camunda.io/aravindhrs/32/32503_2.png) [@aravindhrs](https://forum.camunda.io/u/aravindhrs)\
**Post date:** [September 11, 2020, 11:32pm UTC](https://forum.camunda.io/t/how-to-add-days-to-a-date-variable-in-a-service-task/22488/2 "2020-09-11T23:32:50Z")

</div>

@solo812 try expression like this below:

```auto
${dateTime().withMillis(dueDateField.getTime()).plusDays(10).toDate()}

```

**Deploy this bpmn and test:** [DateCalculationProcess.bpmn](https://forum.camunda.io/uploads/short-url/u7MfvVxRpflhHsEPZobWEQHLbxu.bpmn) (2.9 KB)

 ![image](https://forum.camunda.io/uploads/default/original/2X/3/342c1b3756db1d0f48c3a5f1ac1e5f752ea2f49b.png)

 ![image](https://forum.camunda.io/uploads/default/original/2X/0/04cae6263e96f7cc62c23b0908c75373c0081adc.png)

---

_[View the full topic](https://forum.camunda.io/t/how-to-add-days-to-a-date-variable-in-a-service-task/22488)._
