The sentencing phase is based on a point system set up by the legislature that writes the laws. The higher the points, the longer the sentence. The judge has discretion to determine the sentence, there are a few factors with which to base their determination: criminal conduct history; was the offender the main actor in the crime;
were there victims that were injured or killed; were there aggravating circumstances when an offender was particularly cruel to a victim - the use of a weapon; were there monetary damages or losses.
If we are to simply take what you've asked in the two sentences of information you've provided we could only take an educated guess at a sentence. Previous criminal history, attempted murder with a weapon and inflicting injury could carry a sentence of no less than 20 years and probably more.
https://www.inmateaid.com/ask-the-inmate/what-would-the-sentence-be-for-attempted-murder-with-a-deadly-weapon#answer
Accepted Answer Date Created: February 05,2016