# Tariff file for one2one One-2-Anytime 1200

name one2one One-2-Anytime 1200
network one2one

connection fee 35.00
monthly line rental 25.00
#monthly itemised billing 0.00
#monthly local call option 0.00
max cost error 0.00005
#min call length 4

# Define charge bands
bands daytime, evening, weekend

# Give pseudo-code to calculate which band we're in.
# Code must return one of the bands given above.
band_code {
  return 'weekend' if $dow >= 6;
  return ($hour >= 7 and $hour < 19) ? 'daytime' : 'evening';
}

# What do you get "free"?
1200 mins inclusive monthly for evening:local landline, weekend:local landline, evening:national landline, weekend:national landline, evening:fax, weekend:fax, evening:data, weekend:data, evening:network mobile, weekend:network mobile

# Here are the rates.
rate local landline     daytime=10, evening=2, weekend=2
rate national landline  daytime=10, evening=2, weekend=2
rate network mobile     daytime=20, evening=10, weekend=10
rate crossnet mobile    daytime=40, evening=20, weekend=20
rate voicemail          0
rate network sms        4
rate crossnet sms       10
rate data               daytime=10, evening=2, weekend=2
rate fax                daytime=10, evening=2, weekend=2
