Tag Calculation query vs Tag History Query

Hello

I set a Tag History Query to Range aggregation mode with sample size = 1, so I can get a single valve of my tag(Tmax-Tmin)
I also set Tag Calculation Query to Range aggregation mode with the sample time range of ag History Query but I get another value.
When I manually calculate the result I see only Tag Calculation Query return right value. and Tag History Query value is wrong.
Can some one explain why Tag History Query is wrong?