adding receipt & recursive calculation