changed calculating logic, added option to select type transaction on the forum