Last active
August 29, 2015 14:22
-
-
Save morganp/4fa2cfd3c60659c736fa to your computer and use it in GitHub Desktop.
iPhone 6 contracts cost analysis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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