Skip to content

Instantly share code, notes, and snippets.

@mraaroncruz
Last active August 29, 2015 14:02
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 mraaroncruz/4f7f6cbdd5dfb3e9b369 to your computer and use it in GitHub Desktop.
Save mraaroncruz/4f7f6cbdd5dfb3e9b369 to your computer and use it in GitHub Desktop.
BBQ Rechnung

Summary - all calculations other files below

The BBQ cost 133 EUR and took in 120 EUR. We have a left over case of beer and a few bags of chips which means we pretty much broke even.

For the 4th of July BBQ, I'll offer something special for the burger purchases from the last BBQ, I don't know what yet.

What this all means is that the burger eaters bankrolled the whole thing.

I would like to charge less for the burgers. I would also like to provide beer, water and other beverages.

I want to have an awesome fireworks display!

So this is what I propose for the next BBQ.

Everyone pays 5 EUR and burgers are 4 EUR

I like this because

  • it is fair for the burger folks
  • I can provide salads and beverages to everyone
  • I can afford great fireworks for our "2nd Tri-annual 4th of July Fireworks Bonanza"

So for that price you get beverages which means beer, juice and soda (and water this time... sorry)

And any left over cash goes to an August BBQ

Let me know what you think in the comments - Suggestions very welcome

If I don't respond right away it is because there are no notification on github gists.

I hope you had a great time and I'll see you soon

ruby calc.rb
Spent 133.15 EUR on BBQ stuff

burgers purchased

  • 8 on paypal
  • 4 at site

total income
120 EUR

#!/usr/bin/env ruby
require 'yaml'
items = YAML.load_file('./costz.yml')
total = items.reduce(0) { |sum, item| sum + item.last }
puts "Spent %0.2f EUR on BBQ stuff" % total
beer: 36.36
plates: 2.49
forks: 3.18
batteries_for_scooter_transport: 3.99
jungzwiebeln: 0.59
cornichons: 0.98
bio_kaese: 4.78
bio_faschiertes_5kg: 47.90
bio_zwiebln: 1.59
chips: 5
eier: 2.50
mayo: 0.99
oliven: 1.50
milch: 1.15
potatoes: 2
kraut: 1.26
kohle: 6
pasta: 0.89
grillplatz_reservierung: 10

Left over

  • 1 case of beer @ 18 EUR
  • 3 bags of chips @ 3 EUR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment