overtime = hours – 40; weeklywage = 40 * wage + overtime * 1.5 * wage ; If there is no overtime, simply multiply the worked hours with the wage.
overtime = hours – 40; weeklywage = 40 * wage + overtime * 1.5 * wage ; If there is no overtime, simply multiply the worked hours with the wage.