Hi Amit,
In addtion to Bill's comments, check whether you have confgured the interest rules for calculating interest for credits.
Moreover, check for the tolerance days confgured for the interest key for which you are trying to calculate the interest.
Thanks,
Amlan