My math is bad, real bad. So bad I'm struggling to even phrase this question, but here goes.
The situation is train travel and you have four arrays to work with.
Leaving_Stations Arriving_Stations
Leaving_Dates Returning_Dates
So let's say you're only interested in one way routes and you need to figure out how many combinations of route there are. That would be (i think)
possible_routes = (leaving_stations x arriving_stations) x leaving_dates
But how would I go about figuring out how many combinations there are if I want a return trip?
UPDATE::
or would this work?
possible_routes = ((leaving_stations x arriving_stations) x leaving_dates) x (leaving_dates x returning_dates)