Ruby code for generating monthly cooking gas consumption bills