TX fee calculation in library. No tests or UI yet.