convert pending balance to int