Calculate total ticket remain with api data.