# Comic Mischief - Perform some computation using the age, grade, and pageNumber to calculate the cost of the comic book

I wonder if anyone can help me with me with this, how do you link your previously stated calculations to the next iteration of “year, pageNumber, grade” in the next ‘Comic’ given, when i run this i get the previously given totalPrice as if it is ignoring the next set of given variables for “year, pageNumber, grade”

“”"
package main
import “fmt”

func main() {
var publisher, writer, artist, title string
var year, pageNumber uint

var totalPrice float64

const currentYear = 2022
const yeartax = .020
var yearPrice float64
yearPrice = float64(currentYear - year)
var yearCostTotal float64
yearCostTotal += float64(yearPrice)
yearCostTotal *= yeartax

totalPrice += yearCostTotal

const pageTax = .015
var pagePrice float64
pagePrice = float64(pageNumber) * pageTax
var pageCostTotal float64
pageCostTotal += pagePrice

totalPrice += pageCostTotal

} else if grade <= 7.5 {
} else {
}

title = “Mr. GoToSleep”
writer = “Tracey Hatchet”
artist = “Jewel Tampson”
publisher = “DizzyBooks Publishing Inc.”
year = 1997
pageNumber = 14
fmt.Println(title, “Written by”, writer, “drawn by”, artist, “published by”, publisher, “in”, year, “containing”, pageNumber, “pages, with a condition rating of”, grade, totalPrice)

totalPrice = 0

title = “Epic Vol. 1”
writer = “Ryan N. Shawn”
artist = “Phoebe Paperclips”
publisher = “DizzyBooks Publishing Inc.”
year = 2013
pageNumber = 160