Hey folks

i am having a big headache adding number to unsigned long

my code is

```
static time_t addTime(Time fir, Time oth) {
unsigned int total = (oth.hours * 3600) + (oth.minutes * 60) + oth.seconds;
time_t temp = total + fir.stamp;
return temp;
}
```

please help me out

i wanna add total (43200 ) to fir.stamp ( which is of type time_t from timeLib.h ( 948209158 ) ) the answer should be = 948252358 but i get the answer = 948186822

from time library

# if !defined(__time_t_defined) // avoid conflict with newlib or other posix libc

typedef unsigned long time_t;

# endif

thanks in advance :)