Fixed runtime calculation (was backwards)