{"id":1482,"date":"2025-09-24T16:19:29","date_gmt":"2025-09-24T16:19:29","guid":{"rendered":"http:\/\/gogetmuscle.com\/?p=1482"},"modified":"2025-09-24T17:44:11","modified_gmt":"2025-09-24T17:44:11","slug":"calculated-date-using-a-number-field","status":"publish","type":"post","link":"http:\/\/gogetmuscle.com\/index.php\/2025\/09\/24\/calculated-date-using-a-number-field\/","title":{"rendered":"Calculated date using a number field"},"content":{"rendered":"

Using a calculated field, is it possible to have a date field + number field = date field?

Invoice send date + Term Length (number field) = Invoice due date<\/P>

\u00a0<\/P>

add_time([properties.invoice_send_date], [properties.term_length], ‘day’) is giving me a huge number and not a date<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"

Using a calculated field, is it possible to have a date field + number field = date field?Invoice send date + Term Length (number field) = Invoice due date\u00a0add_time([properties.invoice_send_date], [properties.term_length], ‘day’) is giving me a huge number and not a date<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/1482"}],"collection":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/comments?post=1482"}],"version-history":[{"count":1,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/1482\/revisions"}],"predecessor-version":[{"id":1483,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/1482\/revisions\/1483"}],"wp:attachment":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/media?parent=1482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/categories?post=1482"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/tags?post=1482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}