if anyone can solve or look into it,please.

My solution doesn’t pass all testcases,

Contest & problem : Interviewbit Codedrift 2.0 August Problem - Covid 20?

```
int Solution::calculateCells(int n, int b, int c) {
long long tot[n+5];
long long mod=1000000007;
memset(tot,0,sizeof(tot));
tot[1]=1;
for(int i=1;i<n;i++)
{
int val=(c-1)/b;
for(int j=1;j<=val;j++)
{
if(i+j*b<=n)
tot[i+j*b]=(tot[i]+ tot[i+j*b])%mod;
else break;
}
}
long long sum=0LL;
for(int i=0;i<min(c,n);i++)
sum=(sum+tot[n-i])%mod;
return sum;
}
```