If Range("B1") - (Range("H4") * 2) < 1250 Then
Range("D7") = 0
Range("D8") = 1
Range("D10") = 0
Range("D11") = 1
Range("B8") = (Range("B1") - Range("H1") * 2 - Range("B7") * Range("D7"))
Range("B8") = Application.WorksheetFunction.RoundUp(Range("B8"), 0)
Else
Do Until lb < (entraxe_standard + (Range("H4") - Range("H1")))
lb = lb - entraxe_standard
Range("D7") = Range("D7") + 1
Loop
Range("D7") = Range("D7") - 1
Range("D8") = Range("D8") + 2
Range("B8") = (Range("B1") - Range("H1") * 2 - Range("B7") * Range("D7")) / 2
Range("B8") = Application.WorksheetFunction.RoundUp(Range("B8"), 0)
End If