checktotal-solution-th

solutions for checktotal function