Assuming assessee is Individual , tax slab will be (250001 to 500000) and hence tax will be @ 5% that is 12500/- , from that rebate under section 87A will be deducted by Rs 12500/- resulting into NIL tax liability. (assuming there are no disallowances from net profit)