parse tag
calculate percentage