mrngm / besparing

Calculate savings on train travels and subscriptions
1 stars 1 forks source link

Add tariffs in and outside rush hours / weekends #5

Open mrngm opened 6 years ago

mrngm commented 6 years ago

Some subscriptions offer 20% or 40% reduction on the ticket fare during weekdays outside rush hours. During rush hours, the subscription gives no reduction and the full fare needs to be paid.

mrngm commented 6 years ago

Given the format of the csv from ov-chipkaart.nl, when a transactions csv is imported, the journeys have to be matched (Check-in and Check-uit) in order to calculate when a traveller started its journey. This is needed to determine whether full fare (during rush hour) or reduced fare (outside rush hour) needs to be calculated.