An image forming apparatus comprising: an interface configured to communicate with a network; a main body memory configured to store therein: a first upper limit information indicating an upper limit of a printable page number that is defined in accordance with contents of a contract set in the image forming apparatus; a second upper limit information indicating an upper limit of a printable page number that the image forming apparatus is allowed to print in a state where the image forming apparatus is in an off-line state where the interface is incapable of connecting with the network; and a printed page number information indicating a printed page number printed by the image forming apparatus in the off-line state; and a controller configured to: in a state where the interface is in the off-line state, perform printing to print one or more sheets according to a print job (S34 through S44); when one sheet is printed, increment the printed page number information by one in a case where the one sheet of paper is printed on one side printing, and increment the printed page number information by two in a case where the one sheet of paper is printed on double-sided printing (S411); and after the printed page number information is incremented, determine whether the printed page number information is greater than or equal to the second upper limit page number (S412). an interface configured to communicate with a network; a main body memory configured to store therein: a first upper limit information indicating an upper limit of a printable page number that is defined in accordance with contents of a contract set in the image forming apparatus; a second upper limit information indicating an upper limit of a printable page number that the image forming apparatus is allowed to print in a state where the image forming apparatus is in an off-line state where the interface is incapable of connecting with the network; and a printed page number information indicating a printed page number printed by the image forming apparatus in the off-line state; and a first upper limit information indicating an upper limit of a printable page number that is defined in accordance with contents of a contract set in the image forming apparatus; a second upper limit information indicating an upper limit of a printable page number that the image forming apparatus is allowed to print in a state where the image forming apparatus is in an off-line state where the interface is incapable of connecting with the network; and a printed page number information indicating a printed page number printed by the image forming apparatus in the off-line state; and a controller configured to: in a state where the interface is in the off-line state, perform printing to print one or more sheets according to a print job (S34 through S44); when one sheet is printed, increment the printed page number information by one in a case where the one sheet of paper is printed on one side printing, and increment the printed page number information by two in a case where the one sheet of paper is printed on double-sided printing (S411); and after the printed page number information is incremented, determine whether the printed page number information is greater than or equal to the second upper limit page number (S412). in a state where the interface is in the off-line state, perform printing to print one or more sheets according to a print job (S34 through S44); when one sheet is printed, increment the printed page number information by one in a case where the one sheet of paper is printed on one side printing, and increment the printed page number information by two in a case where the one sheet of paper is printed on double-sided printing (S411); and after the printed page number information is incremented, determine whether the printed page number information is greater than or equal to the second upper limit page number (S412). <EOS>