why not use
if seconds//7= 0 then
B_PWM=B_PWM+1
endif