I used the approved answer to this question but carbon does not calculate time correctly.
laravel-how-to-convert-time-in-seconds-to-human-readable
Why the output of the following codes is different?
$sec = 17279645;
Carbon::now()->addSeconds($sec)->diffForHumans(false, ['parts' => 5]);
CarbonInterval::seconds($sec)->cascade()->forHumans();
"6 months 2 weeks 3 days 54 minutes 4 seconds after"
"7 months 3 days 23 hours 54 minutes 5 seconds"