Skip to content

Instantly share code, notes, and snippets.

@martync
Last active February 16, 2019 13:54
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 martync/0430a1f9c650d457489a15a6b1094e69 to your computer and use it in GitHub Desktop.
Save martync/0430a1f9c650d457489a15a6b1094e69 to your computer and use it in GitHub Desktop.
taxe_carburant = 0.9
tarif_baril = 110
litre_par_baril = 159
# 2010
prix_litre = (tarif_baril + tarif_baril * taxe_carburant) / litre_par_baril
# 2011
# Hausse des taxes
taxe_carburant *= 1.12
prix_litre = (tarif_baril + tarif_baril * taxe_carburant) / litre_par_baril
# 2012
# Hausse du baril
tarif_baril *= 1.218
prix_litre = (tarif_baril + tarif_baril * taxe_carburant) / litre_par_baril
# 2013
# Hausse des taxes et du baril
tarif_baril *= 0.97
taxe_carburant *= 1.29
prix_litre = (tarif_baril + tarif_baril * taxe_carburant) / litre_par_baril
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment