Commission calculators typically rely on broker fee schedules, user inputs (details you provide regarding the trade), and market real-time and historical data.