I have a foreach running through each set of project records and placing them into a table, and I need one column to display the number of days until the project is due based on the current time. It currently just displays as a timestamp value and I can't find a working way to convert it into a rounded number of days. Any help appreciated.
<td><?= time() - $project['project_duedate'] ?></td>
Output of above code would just be for example: 38051935