I was hoping someone might help with a function that given two parameters:
@param $bytes : total amount in bytes of data consumed
@param $rate : rate per GB, example .22 (for 22 cents)
@returns Total amount owed
Rounded to nearest cent of course. Thanks in advance for any help.
(Alternatively, you might want to use 1073741824 as the divisor.)