The bid-floor calculator is the bridge between price intelligence and tender response. PharmaDB takes the lane’s clearance distribution and the cost spread for the API, applies the user’s margin target, and returns a defensible bid floor with headroom to median and p25. The view is molecule_country_flow; the underlying tables are lane_competitiveness and api_cost_spread.