Moved custom util for get free percentage