Where should I apply if I spend equal time in Denmark and Sweden?

First compare the purposes of the visits. Even with equal durations, a documented principal purpose may make one country the main destination. If neither duration nor purpose distinguishes the countries, apply through the state whose external Schengen border you will cross first. For an evenly balanced tourist itinerary, direct arrival in Copenhagen can therefore produce a different result from direct arrival in Stockholm. A connection through another Schengen country may also affect the first border crossing. Review the full transport chain, not just the location of the first hotel, and show dates, purposes and the entry point in a clear itinerary summary.