Skip to content

Instantly share code, notes, and snippets.

@morganp
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morganp/4fa2cfd3c60659c736fa to your computer and use it in GitHub Desktop.
Save morganp/4fa2cfd3c60659c736fa to your computer and use it in GitHub Desktop.
iPhone 6 contracts cost analysis
#!/usr/bin/env ruby
# Direct Purchase Cost
iphone16 = 539
iphone64 = 619
puts "Memory upgrade costs #{iphone64 - iphone16 }"
# £5 a month PAYG on Three
iphone16_2year = iphone16 + 5*24
iphone64_2year = iphone64 + 5*24
puts "2Years : Purchase 16GB phone + 5/Month #{iphone16_2year} => #{iphone16_2year/24}/month"
puts "2Years : Purchase 64GB phone + 5/Month #{iphone64_2year} => #{iphone64_2year/24}/month"
puts ""
# £15 a month PAYG on Three gives unlimited Data
iphone16_2year = iphone16 + 15*24
iphone64_2year = iphone64 + 15*24
puts "2Years : Purchase 16GB phone + 15/Month #{iphone16_2year} => #{iphone16_2year/24}/month"
puts "2Years : Purchase 64GB phone + 15/Month #{iphone64_2year} => #{iphone64_2year/24}/month"
# O" Space grey iphone6 with 64GB
# O2 Unlimited voice,txt + 20G data �58 month 0 upfront
# O2 Unlimited voice,txt + 20G data �53 month 50 upfront
# O2 Unlimited voice,txt + 20G data �48 month 130 upfront
puts 58*24
puts 53*24 + 50
puts 48*24 + 130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment