S-I/A Pro forma basic and diluted net loss per share were computed to give effect to the conversion of the preferred stock using the as-if converted method into common shares as though the conversion had occurred as of the beginning of the first period presented or the original date of issuance, if later. The following table presents the calculation of basic and diluted pro forma net loss per share On thousands, except per share data): Year Ended December 31, 2014 Nine Months Ended September 30, 2015 (Unaudited) Net loss $ (154,093) $ (131,528) Basic shares: Weighted-average shares used to compute basic net loss per share 142,042 149,058 Pro forma adjustment to reflect assumed conversion of preferred stock to occur upon completion of the Company's initial public offering 135.253 135,253 Weighted-average shares used to compute basic pro forma net loss per share 277,295 284,311 Diluted shares: Weighted-average shares used to compute diluted pro forma net loss per share 277,295 284,311 Loss per share: Basic (0.56) $ (0.46) Diluted (0.56) $ (0.46) NOTE 15-OTHER INCOME AND EXPENSE Other income and expense, net, is comprised of the following (in thousands): Year Ended December 31, Nine Months Ended September 30, 2012 2013 2014 2014 2015 (Unaudited) Net (gain) loss on foreign exchange $ 18 $ 283 $1,116 $ 722 $ 1,324 Starbucks warrant liability remeasurement (185) (1,235) — — — Other — 2 (12) 15 66 Total other (income) and expense $(167) $ (950) $1,104 $ 737 $ 1,390 NOTE 16-COMMITMENTS AND CONTINGENCIES Operating and Capital Leases The Company has entered into various non-cancelable operating leases for certain offices with contractual lease periods expiring between 2014 and 2025. The Company recognized total rental expenses under operating leases of $1.6 F-43 'fable of Conicnir million, $6.1 trillion, and $11.4 million during the years ended December 31, 2012, 2013. and 2014, respectively