some bits don't look right...
Code:
#define HOUR 3600     /* Seconds in one hour */
#define DAY 86400     /* Seconds in one day */

    /* Get the current difference in seconds */
    seconds = difftime(end_timestamp, start_timestamp);
    printf("Seconds elapsed [ %f ]\n", seconds);

    /* Calculate how many days have elapsed */
    cumulative_days = seconds / DAY; //number of days rounded down
    cumulative_days = (seconds + DAY - 1) / DAY; //number of days rounded up